<!-- addEditRole.html 2017-08-08 16:53:49-->
#@HplusLayout()
#define content()
<div style="padding:10px;height: 100%">
	<form method="post" class="form-horizontal required-validate" action="saveRole" novalidate="novalidate" onsubmit="return validateCallback(this,listDialogAjaxDone)">
		<input type="hidden" name="authRole.id" value="#(authRole.id)"/>
		<div class="form-group">
				<label class="col-xs-3 control-label">平台：</label>
				<div class="col-xs-8">
				#if(authRole.id)
					<div style="padding-top:7px">#(data("AUTH_PORTAL",authRole.portal))</div>
				#else
					<select name="authRole.portal" class="form-control required">
						#(data("AUTH_PORTAL","option",authRole.portal))
					</select>
				<span class="help-block m-b-none"><i class="glyphicon glyphicon-info-sign"></i>保存后无法修改</span>
				#end	
			</div>
				</div>
				<div class="form-group">
				<label class="col-xs-3 control-label">名称：</label>
				<div class="col-xs-8">
	<input type="text" class="form-control required" name="authRole.name" value="#(authRole.name)"/>
				</div>
		</div>		<div class="form-group">
				<label class="col-xs-3 control-label">备注：</label>
				<div class="col-xs-8">
	<textarea name="authRole.remark" class="form-control  ">#(authRole.remark)</textarea>
				</div>
		</div>		
		
		<div class="form-group">
				<label class="col-xs-3 control-label">状态：</label>
				<div class="col-xs-8">
		#for(item:data("ENABLE_FLAG"))
		<label style="font-weight:normal;line-height: 37px;margin-bottom: 0px;padding-right: 5px"><input class="required" type="radio" name="authRole.enable_flag" #if(authRole.enable_flag)#if(authRole.enable_flag==item.key)checked="checked"#end#elseif(item.key=="T")checked="checked"#end value="#(item.key)"/> #(item.value.name) </label>
		#end
				</div>
		</div>		<div class="form-group">
			<div class="col-xs-8 col-xs-offset-3">
				<button type="submit" class="btn btn-primary">保存</button>
			</div>
		</div>
	</form>
</div>
#end
#define js()
<script src="#(res_path)/hplus/js/plugins/validate/jquery.validate.min.js"></script>
<script src="#(res_path)/hplus/js/plugins/validate/messages_zh.min.js"></script>
#end